<?php
class Form_Login extends Zend_Form
{
    public function init ()
    {
        $login = $this->createElement('text', 'login');
        $login->setRequired(true)
            ->addValidator('NotEmpty')
            ->addFilter('StringTrim')
            ->addFilter('StripTags');
        $this->addElement($login);
        
        $password = $this->createElement('password', 'password');
        $password->setRequired(true)->addValidator('NotEmpty');
        
        $this->addElement($password);
        $rememberme = $this->createElement('checkbox', 'rememberme');
        
        $this->addElement($rememberme);
        
        $submit = $this->createElement('submit', 'submit');
        $this->addElement($submit);
    }
}
?>

